package com.xujl.reflectcontainer;

import android.util.Log;

/**
 * <pre>
 *     @author : xujl
 *     e-mail : 597355068@qq.com
 *     time   : 2018/10/18
 *     desc   :
 *     version: 1.0
 * </pre>
 */
public class Logger {
    private static boolean sDebug;

    public static void setDebug (boolean debug) {
        sDebug = debug;
    }

    static void e (String tag, String msg) {
        if (sDebug) {
            Log.e(tag, msg);
        }
    }

    static void d (String tag, String msg) {
        if (sDebug) {
            Log.d(tag, msg);
        }
    }
}
